using System;
using UnityEngine;

[Serializable]
public class ScreenShot : MonoBehaviour
{
	public string ext;

	public int append;

	public string filename;

	public ScreenShot()
	{
		ext = ".png";
		filename = "Screenshot";
	}

	public void Update()
	{
		if (UnityEngine.Input.GetKeyDown("p"))
		{
			append++;
			ScreenCapture.CaptureScreenshot(filename + append + ext);
		}
	}

	public void Main()
	{
	}
}
